package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantStatistics;
import com.nbsaas.boot.merchant.api.domain.simple.MerchantStatisticsSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商家统计-列表对象转换器
*/

public class MerchantStatisticsSimpleConvert implements Converter<MerchantStatisticsSimple, MerchantStatistics> {




@Override
public MerchantStatisticsSimple convert(MerchantStatistics source) {
    MerchantStatisticsSimple result = new MerchantStatisticsSimple();

                result.setRefundCount(source.getRefundCount());
                result.setOrderCount(source.getOrderCount());
                result.setAddDate(source.getAddDate());
                result.setOrderAmount(source.getOrderAmount());
                result.setMerchantId(source.getMerchantId());
                result.setReviewCount(source.getReviewCount());
                result.setStatisticsDate(source.getStatisticsDate());
                result.setAvgRating(source.getAvgRating());
                result.setViewCount(source.getViewCount());
                result.setId(source.getId());
                result.setRefundAmount(source.getRefundAmount());
                result.setCommissionAmount(source.getCommissionAmount());
                result.setFavoriteCount(source.getFavoriteCount());
                result.setLastDate(source.getLastDate());


    return result;
}

}